import fetch from 'fetch'

export default {
  getCategory (params) {
    return fetch({
      url: '/v1/user/train/test/category',
      params
    })
  },
  getTestClassess (params) {
    return fetch({
      url: '/v1/train/classroom/testItem',
      params
    })
  },
  getTestStudents (params) {
    return fetch({
      url: '/v1/user/train/agegroup/student/list',
      params
    })
  },
  getStudentsDetail (params) {
    return fetch({
      url: '/v1/user/train/student',
      params
    })
  },
  getItemScoreRuleInfo (params) {
    return fetch({
      url: '/v1/user/train/test/itemScoreRuleInfo',
      params
    })
  },
  saveTestScore (data, options = {}) {
    return fetch({
      url: '/v1/user/train/test/studentTestScore',
      method: 'POST',
      data,
      options
    })
  },
  getScoreStandard (params) {
    return fetch({
      url: '/v1/user/train/test/standard',
      params
    })
  }
}
